package model

import (
	"gorm.io/gorm"
)

type Home struct {
	gorm.Model
	Name    string  `gorm:"type:varchar(50); not null"`
	Price   float64 `gorm:"type:decimal(10,2); not null"`
	Stock   string  `gorm:"type:varchar(50); not null"`
	Image   string  `gorm:"type:varchar(500); not null"`
	ClassId int     `gorm:"type:int(10); not null"`
	BrandId int     `gorm:"type:int(10); not null"`
}
type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(50); not null"`
}
type Brand struct {
	gorm.Model
	Name string `gorm:"type:varchar(50); not null"`
}
type HomeData struct {
	Home
	ClassName string
	BrandName string
}
